package com.andova.widget.timequantum

import kotlin.math.abs

data class Time(
    val sh: Int, val sm: Int,
    val eh: Int, val em: Int,
    val start: String, val end: String
) {
    fun offsetMinutes(): Int = if (sm >= em) (abs(sh - eh) - 1) * 60 + 60 - sm + em else abs(sh - eh) * 60 + abs(sm - em)
}